import service from '@/api/http'
export const project_category = {

    getProjectCategory(p) {
        return service.get('/project_category', {
            params: {
                category_name: p.category_name,
            }
        })
    },

    addProjectCategory(p) {
        return service.put('/project_category/add', p)
    },

    updateProjectCategory(p) {
        return service.post('/project_category/update', p)
    },

    deleteProjectCategory(p) {
        return service.delete('/project_category/delete', {
            params: {
                category_id: p.category_id
            }
        })
    }

}